package decorator.v1;

public class DecoratorTest {
    public static void main(String[] args) {
        CalcFee calcFee = new BaseCalcFee();
        calcFee = new NewCalcFee(calcFee);
        calcFee = new VipCalcFee(calcFee);
        Param param = new Param();
        param.setNumber(100);
        Result result = calcFee.cost(param);
    }
}
